
const windows = {
  state: {
    height: document.documentElement.clientHeight,
    width: document.documentElement.clientWidth
  },
  mutations: {
    SET_HEIGHT: (state, height) => {
      state.height = height
    },
    SET_WIDTH: (state, width) => {
      state.width = width
    }
  },
  actions: {
    SetHeight ({ commit }, height) {
      commit('SET_HEIGHT', height)
    },
    SetWidth ({ commit }, width) {
      commit('SET_WIDTH', width)
    }
  }
}

export default windows
